<?php
namespace Api\Controller;
use Think\Controller\RestController;

class KebiaoController extends RestController {
	public function getOne(){
		$ret = array();
		$schoolId 	= I('get.school_id', 0);
		$xiId 		= I('get.xi_id', 0);
		$nianjiId 	= I('get.nianji_id', 0);
		$banjiId 	= I('get.banji_id', 0);
		$weekId 	= I('get.week_id', 0);
		if ($schoolId * $xiId * $nianjiId * $banjiId * $weekId == 0) {
			$ret = array('status' => 0, 'msg' => '参数错误');
		}
		$map = array(
			'school_id' => $schoolId,
			'xi_id' => $xiId,
			'nianji_id' => $nianjiId, 
			'banji_id' => $banjiId,
			'week_id' => $weekId
		);
		$ret = D('Kebiao')->where(array($map))->find();
		$this->response($ret, 'json');
	}
	
}